package edu.pitt.dbmi.odie.gapp.gwt.client.navigator;

import java.util.ArrayList;
import java.util.Iterator;

public class ODIE_NavigatableDocument extends ODIE_NavigatableMetaData {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 489760435471081186L;
	private String uuid ;
	private String text ;
	private ArrayList<ODIE_NavigatableAnnotation> annotations ;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public ArrayList<ODIE_NavigatableAnnotation> getAnnotations() {
		return annotations;
	}

	public void setAnnotations(ArrayList<ODIE_NavigatableAnnotation> annotations) {
		this.annotations = annotations;
	}

	public String toString() {
		String result = "" ;
		result += "Document: " + super.toString();
		if (isRealized()) {
			for (Iterator<ODIE_NavigatableAnnotation> iterator = getAnnotations().iterator() ; iterator.hasNext() ;) {
				result += "\n\t" + iterator.next().toString() ;
			}
			result += "\n" + text ;
		}
	
		return result ;
	}
}
